package com.weiqiao.mall.service;

import com.weiqiao.mall.domain.AccountDetailEntity;
import org.bson.Document;
import org.bson.conversions.Bson;

import java.util.List;

public interface IAccountDetailService {

    /**
     * 根据条件查询单条收支明细
     *
     * @param company_id
     * @param filter
     * @return
     */
    AccountDetailEntity findOneAccountDetail(int company_id, Bson filter);

    /**
     * 修改收支明细
     * @param doc
     * @param filter
     * @param company_id
     * @return
     */
    boolean updateDetail(Document doc, Bson filter, int company_id);

    int countNum(int company_id, Bson filter);

    List<AccountDetailEntity> queryAccountDetail(Bson filter, int company_id, Bson sort, int pageNo, int pageSize);
}
